import axios from '../../index'

//文章内容列表
export const getTitleList = (name, pid, status, type) => {
    return axios({
        method: 'get',
        url: '/api/admin/category/list',
        params: {
            name, pid, status, type
        }
    })
}

//删除当前文章的接口
export const delTitle = (id) => {
    return axios({
        method: 'get',
        url: '/api/admin/category/delete',
        params: {
            id
        }
    })
}